﻿using MongoDAO.Configuration;
using MongoDAOTest.Entities;
using NUnit.Framework;

namespace MongoDAOTest
{
    [TestFixture]
    public class MongoConfigurationSettingsTests
    {

        [Test]
        public void GetCollectionName_Test()
        {
            var collectionName = MongoConfigurationSettings.GetCollectionName<Document>();
            Assert.AreEqual("Documents", collectionName);
        }

        [Test]
        public void GetCollectionName_Overload_Test()
        {
            var collectionName = MongoConfigurationSettings.GetCollectionName(typeof (Document));
            Assert.AreEqual("Documents", collectionName);
        }

    }
    

   
}
